package com.junhong.action;

import javax.annotation.Resource;

import com.junhong.entity.User;
import com.junhong.service.UserService;

public class UserUpdateAction {

	private Integer userId; // 用户ID
	private String userName; // 用户名
	private String password; // 密码
	private String userDescription;// 描述信息
	private String roleName;// 角色名字
	
	@Resource
	private UserService userService;
	public void update() {
		User user = new User(userId,userName,password,null, userDescription,roleName, null);
		userService.update(user);
	}
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUserDescription() {
		return userDescription;
	}
	public void setUserDescription(String userDescription) {
		this.userDescription = userDescription;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
	
}
